package hamsterpolice.todo.data;

import android.database.Cursor;


public interface DataAdapter<T extends Model<T>> {
	
	Cursor get(Criteria<?> criteria) throws UnhandledCriteriaException;
	long load (Cursor c, T model);
	long insert(T model) throws DatabaseConstraintException;
	boolean update(T model) throws DatabaseConstraintException;
	boolean delete(long id);
}
